package com.googlecode.etl.kravas;

import org.springframework.batch.item.file.FlatFileHeaderCallback;

import java.io.IOException;
import java.io.Writer;

/**
 * @author A_Reshetnikov
 * @since Date: 28.08.2013
 */
public class HeaderCallback implements FlatFileHeaderCallback {

    private String header;

    public void writeHeader(Writer writer) throws IOException {
        writer.write(header);
    }

    public void setHeader(String header) {
        this.header = header;
    }
}
